package com.myjk.gline.network.proxy;

import java.util.ArrayList;
import java.util.List;
import com.commons.network.modulecore.model.CommandInfoModel;
import com.commons.network.modulecore.model.CommandModel;


     public class PlayerProxy
     {
       /**
        *推送
        *Server
        * 参数
        *
        *     当前时间
        *     Name:time     TYPE:'long     SIZE:8
       **/
        public final static int GC_HEART_BEAT=100;
       /**
        *接收
        *Client
        * 参数
        *
        *     当前时间
        *     Name:time     TYPE:'long     SIZE:8
       **/
        public final static int CG_TEST_FIRST=200;
       /**
        *返回
        *Server
        * 参数
        *
        *     之后时间
        *     Name:time     TYPE:'long     SIZE:8
        *     ID
        *     Name:id     TYPE:'int     SIZE:4
       **/
        public final static int GC_TEST_FIRST=201;
       /**
        *接收
        *Client
        * 参数
        *
       **/
        public final static int CG_TEST_LIST=800;
       /**
        *返回
        *Server
        * 参数
        *
        *     Java List to AS Array
        *     Name:testList     TYPE:'listaTest     SIZE:1
       **/
        public final static int GC_TEST_LIST=801;
       /**
        *接收
        *Client
        * 参数
        *
        *     字符串数据测试
        *     Name:countId     TYPE:'int     SIZE:4
        *     Int型数据测试
        *     Name:i     TYPE:'int     SIZE:4
        *     Long型数据测试
        *     Name:l     TYPE:'long     SIZE:8
        *     Byte型数据测试
        *     Name:b     TYPE:'byte     SIZE:1
        *     Short型数据测试
        *     Name:s     TYPE:'short     SIZE:2
        *     Float型数据测试
        *     Name:f     TYPE:'float     SIZE:4
        *     Double型数据测试
        *     Name:d     TYPE:'double     SIZE:8
       **/
        public final static int CG_TEST=900;
       /**
        *返回
        *Server
        * 参数
        *
        *     字符串数据测试
        *     Name:countId     TYPE:'int     SIZE:4
        *     Int型数据测试
        *     Name:i     TYPE:'int     SIZE:4
        *     Long型数据测试
        *     Name:l     TYPE:'long     SIZE:8
        *     Byte型数据测试
        *     Name:b     TYPE:'byte     SIZE:1
        *     Short型数据测试
        *     Name:s     TYPE:'short     SIZE:2
        *     Float型数据测试
        *     Name:f     TYPE:'float     SIZE:4
        *     Double型数据测试
        *     Name:d     TYPE:'double     SIZE:8
        *     Java List to AS Array
        *     Name:li     TYPE:'listtest     SIZE:8
       **/
        public final static int GC_TEST=901;

        public static List<CommandModel> DATA_MODE()
         {
                List<CommandModel> list=new ArrayList<CommandModel>();
                CommandModel model= null;
                CommandInfoModel [] infoArray=null;
                  model     =new CommandModel(100,"Server");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("time","long",8)};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(200,"Client");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("time","long",8)};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(201,"Server");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("time","long",8),new CommandInfoModel("id","int",4)};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(800,"Client");
                  infoArray =new CommandInfoModel[]{};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(801,"Server");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("testList","listaTest",1,new CommandInfoModel[]{new CommandInfoModel("bList","ilistB",1,new CommandInfoModel[]{new CommandInfoModel("b1","int",4)}),new CommandInfoModel("cList","ilistC",1,new CommandInfoModel[]{new CommandInfoModel("c1","float",4)})})};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(900,"Client");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("countId","int",4),new CommandInfoModel("i","int",4),new CommandInfoModel("l","long",8),new CommandInfoModel("b","byte",1),new CommandInfoModel("s","short",2),new CommandInfoModel("f","float",4),new CommandInfoModel("d","double",8)};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
                  model     =new CommandModel(901,"Server");
                  infoArray =new CommandInfoModel[]{new CommandInfoModel("countId","int",4),new CommandInfoModel("i","int",4),new CommandInfoModel("l","long",8),new CommandInfoModel("b","byte",1),new CommandInfoModel("s","short",2),new CommandInfoModel("f","float",4),new CommandInfoModel("d","double",8),new CommandInfoModel("li","listtest",8,new CommandInfoModel[]{new CommandInfoModel("id","int",4),new CommandInfoModel("name","string",8),new CommandInfoModel("sex","byte",1),new CommandInfoModel("age","byte",1)})};
                  model.setCommandInfoModel(infoArray);
                  list.add(model);
              return list;
         }
      }
